home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1648 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  1.0 KB  |  39 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 1 && _root.range == true)
  5.       {
  6.          if(_root.even4 == 2)
  7.          {
  8.             _root.next_dis1 = 2;
  9.             _root.next_txt1 = "I don\'t want to touch that now, I could get zapped.";
  10.          }
  11.          else
  12.          {
  13.             _root.next_dis1 = 2;
  14.             _root.next_txt1 = "I can\'t do anything about this with my bare hands.";
  15.          }
  16.       }
  17.       if(_root.micon._currentframe == 2)
  18.       {
  19.          if(_root.even4 == 2)
  20.          {
  21.             _root.next_dis1 = 2;
  22.             _root.next_txt1 = "Busted that sucker up good.";
  23.          }
  24.          else
  25.          {
  26.             _root.next_dis1 = 2;
  27.             _root.next_txt1 = "Its the alarm to this door, I need to find some way to mess it up.";
  28.          }
  29.       }
  30.       if(_root.micon._currentframe == 12)
  31.       {
  32.          _root.fade.play();
  33.          stopAllSounds();
  34.          _root.gotoAndStop(41);
  35.          _root.micon.gotoAndStop(1);
  36.       }
  37.    }
  38. }
  39.